package edu.scau.sku.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
public class SkuRecordVo implements Serializable {
        private static final long serialVersionUID = 1L;
        @Schema(name = "id",description = "id",type = "Long")
        private long id;
        @Schema(name = "skucode",description = "库存编号",type = "String")
        private String skuCode;
        @Schema(name = "type",description = "库存记录类型",example = "入库/出库")
        private String type;
        @Schema(name = "quantity",description = "库存变更数量",type = "Integer")
        private int quantity;
        @Schema(name = "time",description = "记录时间",type = "Date")
        private Date time;
        @Schema(name = "creator",description = "库存操作员",type = "String")
        private String creator;
        @Schema(name = "remark",description = "备注",type = "String")
        private String remark;



    public SkuRecordVo(long id, String skuCode, String type, int quantity, Date time, String creator) {
        this.id = id;
        this.skuCode = skuCode;
        this.type = type;
        this.quantity = quantity;
        this.time = time;
        this.creator = creator;
    }

    public SkuRecordVo() {
    }
}
